package com.key.custom.plm.service.serviceImp;

import com.key.base.service.serviceImp.BaseServiceImp;
import com.key.custom.plm.dao.ISsoDao;
import com.key.custom.plm.model.Sso;
import com.key.custom.plm.service.ISsoService;

public class SsoServiceImp extends BaseServiceImp implements ISsoService {
	ISsoDao ssoDao;

	public ISsoDao getSsoDao() {
		return ssoDao;
	}

	public void setSsoDao(ISsoDao ssoDao) {
		this.ssoDao = ssoDao;
	}

	/**
	 * model
	 * 
	 * @param sso
	 */
	@Override
	public void add(Sso sso) throws Exception {
		try {
			ssoDao.add(sso);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}

	/**
	 * model
	 * 
	 * @param sso
	 */
	@Override
	public void update(Sso sso) throws Exception {
		try {
			ssoDao.update(sso);
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
	}
}
